import request from './utils/request'

export default {
  getPageListByGroupId(current, limit,GroupId) {
    return request({
      url: `/eduservice/edu_teachergroup/pageTeacherGroupByGroupId/${current}/${limit}/${GroupId}`,
      method: 'post',

    })
  },
  get(id) {
    return request({
      url: `/eduservice/edu_teachergroup/${id}`,
      method: 'get',

    })
  },
  deleteTeacherGroup(id){
    return request({
      url:`/eduservice/edu_teachergroup/${id}`,
      method:'delete',
    })
  },
  getListTeacherGroupByTeacherId(teacherId){
    return request({
      url:`/eduservice/edu_teachergroup/getByTeacherId/${teacherId}`,
      method:'get',
    })
  },
  add(teacherGroupInfo,TeacherAddList){
    return request({
      url:'/eduservice/edu_teachergroup/',
      method:'post',
      data:{
        teacherGroupInfo,
        TeacherAddList
      }
    })
  }

}
